<h1>Roles (<?= Role::count(); ?>)</h1>
<?= link_to("Add Role", array("controller" => "role", "action" => "add")) ?>
<table>
  <tr>
    <th>Id</th>    
    <th>Name</th>    
    <th>Description</th>    
    <th colspan="3">Actions</th>
  </tr>  
<? foreach($roles as $role) : ?>
  <tr>
      <td><?= $role->id; ?></td>
      <td><?= $role->name; ?></td>
      <td><?= $role->description; ?></td>
    
    <td><?= link_to("View",   array("controller" => "role", "action" => "view",   "id" => $role->id)) ?></td>
    <td><?= link_to("Edit",   array("controller" => "role", "action" => "edit",   "id" => $role->id)) ?></td>
    <td><?= link_to("Delete", array("controller" => "role", "action" => "delete", "id" => $role->id)) ?></td>
  </tr>  
<? endforeach; ?>
</table>